package com.example.prom.ok.y2023.trade.controller;

import com.example.prom.ok.y2023.trade.service.OuyiTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("ouyitrade")
@RestController
public class OuyiTradeController {

    @Autowired
    private OuyiTradeService ouyiTradeService;

    @GetMapping("getDetailTradeDataByTime")
    public void getDetailTradeDataByTime(HttpServletRequest request, String unit){
        ouyiTradeService.getDetailTradeDataByTime(request, unit);
    }
}
